# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-uinput
pkgver=0.11.2
pkgrel=4
pkgdesc="Pythonic API to Linux uinput module"
url="https://github.com/tuomasjjrasanen/python-uinput"
arch="all"
license="GPL-3.0-only AND GPL-3.0-or-later"
install="$pkgname.pre-upgrade"
depends="python3"
makedepends="
	eudev-dev
	linux-headers
	py3-setuptools
	"
subpackages="$pkgname-pyc"
source="https://pypi.python.org/packages/source/p/python-uinput/python-uinput-$pkgver.tar.gz
	0001-fix-32bit-build.patch
	py311.patch
	"
builddir="$srcdir/python-uinput-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
47cf878c57da8117010caa3ccbdfe8ee96106b2c7164639c779ea16be05eed2ffea0341c14738c7491ff98827f756772944783d560a747b4b011c76e77693fda  python-uinput-0.11.2.tar.gz
3c5d3b39fa5cd6f44700fb767dd351d90cfb0efe50d5e1eb10f3e214ddd998acb71117e86acae66288ca3bae4b704368d9406ac603e612ae23c475ed7e6e5532  0001-fix-32bit-build.patch
be8a0c29c61cd8f3062a489bd117e5df01a5b6ea2278989ca4509b891b05cd2d0c95f9da9f6055f1882d8f9afff19226ffa557afb2408cc4d337a52afc027afb  py311.patch
"
